import request from '@/utils/request'

// 查询游戏资源列表
export function listGameResource(query) {
  return request({
    url: '/business/gameResource/list',
    method: 'get',
    params: query
  })
}

// 查询游戏资源详细
export function getGameResource(id) {
  return request({
    url: '/business/gameResource/' + id,
    method: 'get'
  })
}

// 新增游戏资源
export function addGameResource(data) {
  return request({
    url: '/business/gameResource',
    method: 'post',
    data: data
  })
}

// 修改游戏资源
export function updateGameResource(data) {
  return request({
    url: '/business/gameResource',
    method: 'put',
    data: data
  })
}

// 删除游戏资源
export function delGameResource(id) {
  return request({
    url: '/business/gameResource/' + id,
    method: 'delete'
  })
}
